package perform.session;

import perform.Caretaker;
import perform.Facade;
import perform.connection.ConnectionManager;

public class SessionFactory {
	
	private static ConnectionManager pool;
	
	public static Session getSession(){
		if(pool == null){
			pool = Facade.getPool();
		}
		return new SessionImpl(pool, Caretaker.getProperty("writeSQL"));
	}
	
}
